#!/bin/sh

#centos 安装srs留媒体服务
yum install -y git gcc-c++  patch make unzip
git clone https://gitee.com/ossrs/srs.git srs.4.0

cd srs.4.0/trunk
installpath="/opt/srs"


./configure --prefix=$installpath --x86-64
make && make install

$installpath/etc/init.d/srs start
#./objs/srs -c conf/srs.conf


